From 359c6a322ea6f8353fb0329ebd851a3a11ef2143 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Fri, 24 Nov 2006 21:55:52 +0000 Subject: [PATCH] Remove (shpopen) warning on FreeBSD. --- shapelib/shpopen.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shapelib/shpopen.c b/shapelib/shpopen.c index 9e75ec7d1..255068b98 100644 --- a/shapelib/shpopen.c +++ b/shapelib/shpopen.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $Id: shpopen.c,v 1.4 2006/07/13 03:27:54 robertl Exp $ + * $Id: shpopen.c,v 1.5 2006/11/24 21:55:52 oliskoli Exp $ * * Project: Shapelib * Purpose: Implementation of core Shapefile read/write functions. @@ -34,6 +34,9 @@ ****************************************************************************** * * $Log: shpopen.c,v $ + * Revision 1.5 2006/11/24 21:55:52 oliskoli + * Remove (shpopen) warning on FreeBSD. + * * Revision 1.4 2006/07/13 03:27:54 robertl * Andy Armstrong turns on -Wall for GCC builds and kills about a sequillion warnings. Most of them aren't "real", but it's still a good thing to clean up. * (I hope I don't regret this before 1.3.1...) @@ -172,7 +175,7 @@ */ /*static char rcsid[] = - "$Id: shpopen.c,v 1.4 2006/07/13 03:27:54 robertl Exp $";*/ + "$Id: shpopen.c,v 1.5 2006/11/24 21:55:52 oliskoli Exp $";*/ #include "shapefil.h" #include "config.h" @@ -933,6 +936,7 @@ SHPWriteObject(SHPHandle psSHP, int nShapeId, SHPObject * psObject ) uchar *pabyRec; int32 i32; + nRecordSize = 0; psSHP->bUpdated = TRUE; /* -------------------------------------------------------------------- */ -- 2.30.2